/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package SynchronizationLayer;

import DataModel.NotaryEntry;
import java.io.IOException;
import java.net.InetAddress;

/**
 *
 * @author Tomasz Nowak
 */
public interface ISynchronizationServer
{
	//NotarySynchronizationPacket receiveRequest() throws IOException, ClassNotFoundException;

	void startReceivingRequests();

	void sendResponse( NotarySynchronizationMessage notarySynchronizationMessage, InetAddress address, int port ) throws IOException, ClassNotFoundException;

	public void revoke( NotaryEntry entry );

	void synchronize();

	public void register( NotaryEntry entry );
}
